package com.lvmama.search.spider.config;

import java.util.Map;

import com.lvmama.search.spider.proxy.ProxyIp;

public class ContentFetchConfig {

	private String url;
	
	private String method;
	
	private Map<String, String> parameters;
	
	private Map<String, String> header;
	
	private int soTimeout=10000;
	
	private int conTimeout=5000;
	
	private IRetryPolicy retryPolicy=DefaultRetryPolicy.INSTANCE;
	
	private boolean useProxy=true;
	
	private ProxyIp  proxyIp;
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Map<String, String> getParameters() {
		return parameters;
	}

	public void setParameters(Map<String, String> parameters) {
		this.parameters = parameters;
	}

	public Map<String, String> getHeader() {
		return header;
	}

	public void setHeader(Map<String, String> header) {
		this.header = header;
	}

	public int getSoTimeout() {
		return soTimeout;
	}

	public void setSoTimeout(int soTimeout) {
		this.soTimeout = soTimeout;
	}

	public int getConTimeout() {
		return conTimeout;
	}

	public void setConTimeout(int conTimeout) {
		this.conTimeout = conTimeout;
	}

	public IRetryPolicy getRetryPolicy() {
		return retryPolicy;
	}

	public void setRetryPolicy(IRetryPolicy retryPolicy) {
		this.retryPolicy = retryPolicy;
	}

	public boolean isUseProxy() {
		return useProxy;
	}

	public void setUseProxy(boolean useProxy) {
		this.useProxy = useProxy;
	}

	public ProxyIp getProxyIp() {
		return proxyIp;
	}

	public void setProxyIp(ProxyIp proxyIp) {
		this.proxyIp = proxyIp;
	}
	
	
}
